﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace Truron.Purchase.Service
{
    public interface IDbModelService<T> where T : new()
    {
        int InsertOne(T model, IDbConnection DbConnection);
        int InsertOne(T model, IDbConnection DbConnection, IDbTransaction DbTransaction);
        int InsertOne2(T model, IDbConnection DbConnection, IDbTransaction DbTransaction);
        int UpdateById(T entity, IDbConnection DbConnection);
        int UpdateById(T entity, IDbConnection DbConnection, IDbTransaction DbTransaction);
        //int Delete(T entiy, IDbConnection DbConnection);
    }
}
